Spring mvc3.1 @ ResponseBody annotation generates a large number of Accept-Charset
Spring 3 MVC uses @ ResponseBody and generates a large response header (the Accept-Charset will reach 4 K +), because StringHttpMessageConverter by default.
Spring3 MVC uses @responsebody to produce very large response headers (accept-charset will reach 4k+). The reason is that stringhttpmessageconverter.writeinternal () writes all available character sets back to the response response header by default:
Why input ' 12 ' on the page, can copy to the handler method corresponding parameter?And because a type converter is not able to convert a user-submitted string into all types required by the user, a custom type converter is required toCase: Custom
Spring mvc3.1 @ ResponseBody annotation generates a large number of Accept-Charset, responsebody
Spring 3 MVC uses @ ResponseBody and generates a large response header (the Accept-Charset will reach 4 K +), because StringHttpMessageConverter by
Today, using the SSM framework, with @responsebody annotations, this problem arises.Java.lang.IllegalArgumentException:No Converter found for returnValue of type:classJava.util.ArrayList at
Spring3 MVC uses @responsebody to produce a large response header (accept-charset will reach 4k+), The reason is that stringhttpmessageconverter.writeinternal () writes all available character sets back to the response response header by default:
The following, if there is a problem, please point out, thank you!Serialization/deserialization of objects everyone should be familiar with it: serialization is the conversion of an object into a binary that can be transferred, and deserialization
First, what is the type converter for struts2?The role of a type converter is to convert a string or string array parameter in a request to an object in the action.Most of the time, the type converter provided by Struts2 and the OGNL type conversion
Background introduction:My current job is to do traditional project development, not to use the framework. In recent projects, it is often necessary to use Ajax to get data from the background to the foreground, in JSON format. First of all, I
In Java-based programming, Chinese characters are frequently encountered and displayed, such as a lot of garbled characters or question marks.This is because the default encoding method in Java is Unicode, and the files and DB commonly used by
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.